/**
 * Colors. 
 * by Alvaro Lopez and Juan Baquero
 * 
 *Put your VYM (xml) files inside the Scketch folder.
 *Press the arrow keys or click the nodes for surfing the map .
 *Check the COLOR CONTROL section.
 */

import remixlab.remixvym.*;
import remixlab.remixvym.core.graphics.*;
import remixlab.remixvym.core.graphics.link.*;
import remixlab.remixvym.core.graphics.node.*;

void setup() {
  
  //Render P2D
  size(800,600,P2D);
  // Object style creation
  style = new StyleGraph();
  graph = new SceneMindMap(this,style);

  //COLOR CONTROL.
  //Control the different map colors using the RGB parameters from the style controls:
  //Set the background color
  style.setBackgroundColor(153, 210, 153);
  //Set the node selected color (150,20,20) es rojo oscuro
  style.setSelectedColor(153, 210, 153);
  //Set the unselected node color
  style.setNonSelectedColor(250, 250, 200);
  //If you want to use the default remixlab map colors, comment the style controls, and
  //use just the following line:
  //style.initDeafult(this);
  //Load the XML file created from VYM.
  graph.setMap("Example-colors-style.xml");
}

void draw() {
  graph.paint();
}

SceneMindMap graph;
StyleGraph style;
